<template>
	<view class="content">
		<view class="dalog" v-if="isShot" @click="isShot=false">
			<view class="dailog-contens">
				<view class="dailog-contens-image">
					<image class="dailog" src="../../static/image/1.Element_done.png" mode="widthFix"></image>
				</view>
				<view class="dailog-contens-title">恭喜您预约成功</view>
			</view>
		</view>

		<image class="logo" src="../../static/image/dost.png" mode="widthFix"></image>
		<view class="appointment-form">
			<view class="appointment-title">楼盘名称</view>
			<view class="appointment-input"><input placeholder="楼盘名称" /></view>
		</view>
		<view class="appointment-form">
			<view class="appointment-title">预约类型</view>
			<view class="appointment-input">
				<picker mode="selector" :range="array" @change="bindPick">
					<view>{{array[index]}}</view>
				</picker>
				<image class="appointment-moreiamge" src="../../static/image/Outlinedback@2x.png" mode="widthFix">
				</image>
			</view>
		</view>
		<view class="appointment-form">
			<view class="appointment-title">户&emsp;&emsp;型</view>
			<view class="appointment-input">
				<input placeholder="请输入户型" type="number" />
				<view class="appointment-input-unit">
					<view>(m²)</view>
				</view>
			</view>
		</view>
		<view class="appointment-form">
			<view class="appointment-title">姓&emsp;&emsp;名</view>
			<view class="appointment-input"><input placeholder="请输入姓名" /></view>
		</view>
		<view class="appointment-form">
			<view class="appointment-title">联系方式</view>
			<view class="appointment-input"><input placeholder="请输入联系方式" /></view>
		</view>
		<view class="appointment-form">
			<view class="appointment-title">微信号码</view>
			<view class="appointment-input"><input placeholder="请输入微信号码" /></view>
		</view>
		<view style="display: flex;justify-content: center;padding: 40rpx 0;">
			<button class="submit" hover-class="btn-hover" type="primary" size="mini" @click="isShot=true">确定预约</button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				isShot: false,
				index: 0,
				array: ['验房', '微改报价', '设计', '拎包入住']

			}
		},
		methods: {
			bindPick(e) {
				this.index = e.detail.value
			}
		}
	}
</script>

<style lang="less" scoped>
	.content {
		display: flex;
		flex-direction: column;
	}

		.dailog-contens {
			position: absolute;
			left: 0;
			top: 0;
			right: 0;
			bottom: 0;
			width: 300rpx;
			height: 228rpx;
			margin: auto;
			background: #ffffff;
			border-radius: 16rpx;
			display: flex;
			align-items: center;
			flex-direction: column;
			z-index: 999;
			.dailog-contens-image {
				width: 136rpx;
				height: 136rpx;
				margin-top: 20rpx;
				
				.dailog {
						width: 136rpx;
						height: 136rpx;
						margin-top: 20rpx;
				}
			}

			.dailog-contens-title {
				font-size: 28rpx;
			}
		}
	

	.appointment-form {
		display: flex;
		align-items: center;
		box-sizing: border-box;
		margin-top: 40rpx;

		.appointment-title {
			margin: auto 40rpx;
			font-size: 28rpx;
		}

		.appointment-input {
			position: relative;
			flex: 1;
			height: 60rpx;
			background-color: white;
			margin-right: 72rpx;
			border: 2rpx solid rgba(0, 0, 0, 0.1);
			border-radius: 8rpx;
			padding-left: 24rpx;
			padding-right: 24rpx;
		}

		* {
			height: 100%;
			line-height: 60rpx;
			font-size: 24rpx;
		}

		.appointment-moreiamge {
			position: absolute;
			bottom: 0;
			top: 0;
			right: 20rpx;
			height: 20rpx;
			width: 20rpx;
			margin: auto;
		}

		.appointment-input-unit {
			position: absolute;
			bottom: 0;
			top: 0;
			right: 20rpx;
			color: #999999;
		}
	}
</style>